package com.luo.ssm.service.impl;

import com.luo.ssm.entity.SysUser;
import com.luo.ssm.mapper.SysUserMapper;
import com.luo.ssm.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : luocheng
 * @date : Created in 2021/8/26 19:21
 * @description :
 */
@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;
    @Override
    public SysUser login(SysUser user) {
        SysUser sysUser = sysUserMapper.selectSysUser(user);
        return sysUser;
    }

    @Override
    public int updatePassword(SysUser sysUser) {
        int i = sysUserMapper.updatePassword(sysUser);
        return i;
    }
}
